package com.boil.qz.safekavass.weixin.model;

/**
 * Created by ChenYong on 2017-04-28.
 * <br>
 * 微信接口凭证（access_token）。
 */
public class AccessToken {
    /**
     * 凭证
     */
    private String accessToken;
    /**
     * 有效时间，单位：秒
     */
    private Integer expiresIn;

    /**
     * 默认构造器。
     */
    public AccessToken(String accessToken, Integer expiresIn) {
        this.accessToken = accessToken;
        this.expiresIn = expiresIn;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Integer getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(Integer expiresIn) {
        this.expiresIn = expiresIn;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("AccessToken{");
        sb.append("accessToken='").append(accessToken).append('\'');
        sb.append(", expiresIn=").append(expiresIn);
        sb.append('}');
        return sb.toString();
    }
}